package il.technion.cs236369.webserver.configuration;

import il.technion.cs236369.webserver.simpleServlets.ISimpleServlet;

/**
 * The interface defines the methods needed in the configuration class.
 * @author Ofir Haviv and Itamar Talmi
 *
 */
public interface IServerConfiguration {

	/**
	 * The function returns the mime-type of specific extension.
	 * @param extension - The extension of the mime-type.
	 * @return - The mime-type. Null if not exist.
	 */
	String getMimeType(String extension);
	
	/**
	 * Return the SimpleServlet of the given url.
	 * @param url - The url of the servlet.
	 * @return - The SimpleServlet of the url. Null if not exist.
	 */
	ISimpleServlet getServlet(String url);
}
